php forum
php mysql forum
php mysql smarty
 
Topic Options
#284987 - 04/27/05 02:26 AM Beta-[6.5] Signature Generator
Zarzal Offline
Coder

Registered: 07/03/01
Posts: 811
Loc: Berlin, Germany
Mod Name / Version: Signature Generator <br /> <br />Description: Based on the generic page from Josh and the script Fastbanner from Scott Hough I create this litte add-on for UBBthreads. I have the permission from Scott to modify and post it. It need no modification to the board. <br /> <br />It can create banners on the fly with two text inputs. One text is by default the username (pulled from threads). The script will save the banner under the userID as .png file and can be used by the user for a signature. <br /> <br />Example picture: []http://www.dragonclan-forum.de/photopost/data/3049/medium/Capture-1.jpg[/] <br /> <br />It can be used on my board under http://www.dragonclan-forum.de/siggen/siggen.php but you have to register first. Thats why I post the picture. <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br />Working Under: UBB.Threads 6.5 <br /> <br />Mod Status: Beta <br /> <br />Any pre-requisites: require GD library with png support installed on the server <br /> <br />Author(s): Zarzal <br /> <br />Date: 04/26/05 <br /> <br />Credits: Josh Pet & Scott Hough <br /> <br />Files Altered: none <br /> <br />New Files: <br /> <br />Database Altered: no <br /> <br />Info/Instructions: Installation is easy. Create a directory and upload all files to it include all subdirs. Chmod the directory banners to 777 and the counter.txt file inside the directory to 666. Then edit siggen.php and banner.php and set $threadspath to match your installation. Thats all. To use the script call siggen.php <br /> <br />There are some empty banner included as example and you should create your own templates. <br /> <br />to do: <br />1) modify the online.php language file to show when some use the generator <br />2) put a link for siggen above or below the signature edit field in edituser.php <br />3) add some nice banners <br />4) try to add a option to change the used font <br />5) delete the banner file (if exists) when deleting the user from the databse <br /> <br />Disclaimer: Please backup every file that you intend to modify. <br />If the modification modifies the database, it's a good idea to backup your database before doing so. <br /> <br />Note: If you modify your UBB.Threads code, you may be giving up your right for "official" support from Infopop.If you need official support, you'll need to restore unmodified files.


Attachments
127382-siggen.zip (44 downloads)


Top
#284988 - 04/27/05 08:47 PM Re: Beta-[6.5] Signature Generator [Re: landyphil]
AllenAyres Offline

I type Like navaho

Registered: 03/10/00
Posts: 25580
Loc: Texas
nice, thanks <img src="http://www.ubbdev.com/forum/images/graemlins/waytogo.gif" alt="" />
_________________________
- Allen wavey
- What Drives You?

Top
#284989 - 04/30/05 03:31 AM Re: Beta-[6.5] Signature Generator [Re: landyphil]
Jest Offline
Lurker

Registered: 02/23/05
Posts: 7
A little typo in the code... <br /> <br />In siggen.php at line 36 there is no "}" <br /> <br />
Code:
 <br />if(!$user['U_Username']) { <br />   $html = new html; <br />   $html -&gt; not_right("You must be logged in to view this page.",$Cat); <br /> <br />   $html = new html; <br />   $html -&gt; send_header($pagetitle,$Cat,0,$user); <br />
<br /> <br />change to this <br /> <br />
Code:
 <br />if(!$user['U_Username']) { <br />   $html = new html; <br />   $html -&gt; not_right("You must be logged in to view this page.",$Cat); <br />} <br />   $html = new html; <br />   $html -&gt; send_header($pagetitle,$Cat,0,$user); <br /> 
_________________________
br
Thomas
www.mobile.si

Top
#284990 - 04/30/05 03:56 PM Re: Beta-[6.5] Signature Generator [Re: Graham Carter]
DLWebmaestro Offline
Addict

Registered: 08/08/00
Posts: 1802
Loc: North Carolina
Nice catch! <img src="http://www.ubbdev.com/forum/images/graemlins/waytogo.gif" alt="" />

Top
#284991 - 05/01/05 12:40 PM Re: Beta-[6.5] Signature Generator [Re: eslmix]
ChAoS_dup1 Offline
Code Monkey

Registered: 11/15/02
Posts: 576
Loc: Great Northwest
I am having a problem that when the banner is created it is created with only the permissions of 600 and it cannot be viewed. Once I change the permissions manually on the users first banner then it works <br /> <br /> To view in Who's Online do this; <br /> <br />Add to languages/online.php <br />
Code:
 <br />$ubbt_lang['siggen'] = "Creating a Signature"; <br />$ubbt_lang['siggenbanner'] = "Viewing a newly created Signature";
<br /> <br />Add to banner.php just below <br />require ("$threadspath/includes/main.inc.php"); <br />
Code:
 define('THIS_SCRIPT', 'siggenbanner');
<br /> <br />Add to siggen.php just below <br /> require ("$threadspath/includes/main.inc.php"); <br />
Code:
 define('THIS_SCRIPT', 'siggen');


Edited by ChAoS (05/01/05 01:27 PM)

Top
#284992 - 05/01/05 01:51 PM Re: Beta-[6.5] Signature Generator [Re: Graham Carter]
Zarzal Offline
Coder

Registered: 07/03/01
Posts: 811
Loc: Berlin, Germany
[]Jest said:<br />A little typo in the code... <br /><br />In siggen.php at line 36 there is no "}"[/]<br /><br />very strange. I dont know where I lost it. It is in my code on my webspce and I copy it from there for the archive file <img src="http://www.ubbdev.com/forum/images/graemlins/confused.gif" alt="" /> But you are right, there must be a }
_________________________
my forum: http://www.dragon-clan.de
my hobby: http://www.biker-reise.de

Top
#284993 - 05/01/05 02:00 PM Re: Beta-[6.5] Signature Generator [Re: barbiro]
Zarzal Offline
Coder

Registered: 07/03/01
Posts: 811
Loc: Berlin, Germany
[]<br />I am having a problem that when the banner is created it is created with only the permissions of 600 and it cannot be viewed. Once I change the permissions manually on the users first banner then it works[/]<br /><br />Thats made by your server. The png file is created from script by the server. My server set it to 775. Maybe you can change the file permissions in banner.php after the png file is created. Should be easy to do for a php-Pro <img src="http://www.ubbdev.com/forum/images/graemlins/smile.gif" alt="" /><br /><br />[]To view in Who's Online do this[/]<br />Thanks. The easy way is to setup siggen and banner in the language files without any modification to the scripts. It works for me. My example for online.php:<br /><br />$ubbt_lang['siggen'] = "generate a signature";<br />$ubbt_lang['banner'] = "preview a signature";
_________________________
my forum: http://www.dragon-clan.de
my hobby: http://www.biker-reise.de

Top
#284994 - 05/01/05 02:17 PM Re: Beta-[6.5] Signature Generator [Re: landyphil]
ChAoS_dup1 Offline
Code Monkey

Registered: 11/15/02
Posts: 576
Loc: Great Northwest
PHP pro I am not- Coding by chainsaw is my style <img src="http://www.ubbdev.com/forum/images/graemlins/smile.gif" alt="" />
_________________________
ChAoS
Emerald Forest Gaming Servers
Official STFU Thread


Top
#284995 - 05/03/05 01:34 PM Re: Beta-[6.5] Signature Generator [Re: barbiro]
DrChaos Offline
Coder

Registered: 09/12/03
Posts: 816
Loc: Hollywood Florida.
Atleast you use a chainsaw. Im using a dull butter knife :-\

Top
#284996 - 05/07/05 10:39 PM Re: Beta-[6.5] Signature Generator [Re: Duck]
smoknz28 Offline
Enthusiast

Registered: 04/10/03
Posts: 393
Loc: Washington, D.C.
Nice...digging this hack. <img src="http://www.ubbdev.com/forum/images/graemlins/wink.gif" alt="" /> I have not installed this hack as I want to wait til the bugs are all worked out. Played with it on your site and looks like it will be a great addition for many Threads forums out there. <img src="http://www.ubbdev.com/forum/images/graemlins/laugh.gif" alt="" />

Top
#284997 - 05/08/05 01:32 PM Re: Beta-[6.5] Signature Generator [Re: General_Failure]
Zarzal Offline
Coder

Registered: 07/03/01
Posts: 811
Loc: Berlin, Germany
my Idea for the link inside UBBt:<br /><br />edit languages/english/editbasic.php and change the key PROF_SIG as follow:<br /><br />
Code:
$ubbt_lang['PROF_SIG']  = 	"Signature (up to {$config['Sig_length']}  characters).&lt;br /&gt;You may use &lt;a href=\"{$config['phpurl']}/faq.php#html\" target=\"_new\"&gt;UBBCode&lt;/a&gt; in your signature.&lt;br /&gt;You can use our &lt;a href=\"http://insert your path here/siggen/siggen.php\" target=\"_blank\"&gt;Signature Generator&lt;/a&gt; to create a signature picture";
_________________________
my forum: http://www.dragon-clan.de
my hobby: http://www.biker-reise.de

Top



Moderator:  Ian_W 
Latest Posts
[7.2.1] - Naked shoutbox
by bellaonline
05/05/12 05:00 PM
[7.x] Stop Forum Spam Integration v0.4
by bellaonline
05/05/12 03:53 PM
Shout Box

(Views)Popular Topics
Known public proxy servers 1689885
Integrated Index Page (IIP) 5.3.1 555705
Finished-[6.5.2] Games Arcade Deluxe v1.9 501236
Integrated Index Page (IIP) 5.1.1 415112
TLD Bv2.1 Released - Threads Links Directory 396822
[6.0x] Who's Online 4.0.0 [Finished] 389412
Finished-[6.5.1] Integrated Index Page (IIP) 6.5 330423
Q & A 298663
Slash UBB 266936
[6.3.x] [beta] Hit Hack 2.0 227970
Forum Stats
13621 Members
59 Forums
37191 Topics
295716 Posts

Max Online: 686 @ 06/28/07 07:04 AM

 

 

 
fusionbb message board php hacks